<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>重点项目 - 淄博智慧金融综合服务平台</title>
		<meta name="Keywords" content="金融,金融超市,企业贷款,淄博金融,中小微,贷款,中小微贷款,中小微金融,淄博贷款,淄博中小微,中小微企业" />
		<meta name="Description" content="依托淄博市城市大数据平台，为中小微企业与金融机构搭建的线上线下融资服务平台。金融机构作为“卖家”，在平台上发布融资产品，中小微企业作为“买家”在平台上选购融资产品，金融管理部门负责协调、管理和统计评价工作。" />
		<meta name="renderer" content="webkit" />
		<link rel="shortcut icon" href="favicon.ico" />
		<link rel="stylesheet" href="index/js/layui/css/layui.css" />
		<link rel="stylesheet" href="index/css/style.css" />
		<link rel="stylesheet" href="index/css/article_details.css" />
		<link href="index/css/style_editor.css" rel="stylesheet">
		<style>
		  #editor—wrapper {

		    z-index: 100; /* 按需定义 */
		  }
		 #editor—wrapper .w-e-text-container{
			 font-size: 16px;
		 }
		</style>
	</head>
	<body>
		<div class="container">
			<div id="header" data-page="pageXhjy8"></div>
			<div class="xy-content">
				<div class="clearfix content-box">
					<div class="azde">
						<div class="lfxy" id="qevwck"></div>
						<script id="qevwckTmpl" type="text/x-jsrender">
							<h2 class="ojow">{{:title}}</h2>
							<div class="clearfix qjvfkm">
								<!--<p class="xwgp lqjo">作者：乐创</p>-->
								<p class="xwgp nxmh">发布日期：{{:createTime_show}}</p>
								<p class="xwgp oobj">区县：
									<a href="javascript:;" title="{{:attachment}}">{{:city_show}}</a>
								</p>
							</div>
							<div id="editor—wrapper">
							    <div id="toolbar-container"><!-- 工具栏 --></div>
							    <div id="editor-container"><!-- 编辑器 --></div>
							</div>
							<!-- <div class="ryev" id="ygkjaw">{{= params.content}}</div> -->
							<div class="download_btn">
							    <!-- <button onclick="down()">附件下载</button> -->
								{{if file1}}
									<div>
										<img src="./index/img/xlsx.png" alt="">
										<a onclick="down(1)" style="color:rgb(14, 108, 236);font-size:18px" href="javascript:;">
											{{:file1.slice(73,file1.length)}}
										</a>
									</div>
								{{/if}}
								{{if file2}}
									<div style="margin-top:5px">
										<img src="./index/img/xlsx.png" alt="">
										<a onclick="down(2)" style="color:rgb(14, 108, 236);font-size:18px;" href="javascript:;">
											{{:file2.slice(73,file2.length)}}
										</a>
									</div>
								{{/if}}
							</div>
                            <div class="to_back_btn">
                                 <button onclick="toBack()">返 回</button>
                            </div>
						</script>
					</div>
				</div>
			</div>
			<div class="xy-footer" id="footer"></div>
		</div>
		<script src="index/js/jquery.js"></script>
		<script src="index/js/jquery.base64.js"></script>
		<script src="index/js/jsrender.js"></script>
		<script src="index/js/layui/layui.js"></script>
		<script src="index/js/sdk.js"></script>
		<script src="index/js/loading.js"></script>
		<script src="index/js/core.js"></script>
		<script src="index/js/index_editor.js"></script>
		<script>
			
			var cityOptions = [{
			  "name": "淄川区",
			  "key": "370302"
			}, {
			  "name": "张店区",
			  "key": "370303"
			}, {
			  "name": "博山区",
			  "key": "370304"
			}, {
			  "name": "临淄区",
			  "key": "370305"
			}, {
			  "name": "周村区",
			  "key": "370306"
			}, {
			  "name": "桓台县",
			  "key": "370321"
			}, {
			  "name": "高青县",
			  "key": "370322"
			}, {
			  "name": "沂源县",
			  "key": "370323"
			}, {
			  "name": "文昌湖区",
			  "key": "370324"
			}, {
			  "name": "经开区",
			  "key": "370325"
			}, {
			  "name": "高新区",
			  "key": "370326"
			}];
			 var data = sessionStorage.getItem('zdxm')
			 var params = JSON.parse(decodeURIComponent(data));
			 params.city_show = cityOptions.find(function(i){
				 return i.key == params.city
			 }).name;
			 //params.content = "<br/>"+params.content;
			 console.log('params',params);
			 $('#qevwck').html($.templates('#qevwckTmpl').render(params));
			 
			 const { createEditor, createToolbar } = window.wangEditor
			 
			 const editorConfig = {
			     placeholder: 'Type here...',
				 readOnly:true,
			     onChange(editor) {
			       const html = editor.getHtml()
			       console.log('editor content', html)
			       // 也可以同步到 <textarea>
			     }
			 }
			 
			 const editor = createEditor({
			     selector: '#editor-container',
			     html: '<p><br></p>',
			     config: editorConfig,
			     mode: 'default', // or 'simple'
			 })
			 
			 //console.log('ditor.getAllMenuKeys()',editor.getMenuConfig('fontSize'))
			 // const toolbarConfig = {}
			 
			 // const toolbar = createToolbar({
			 //     editor,
			 //     selector: '#toolbar-container',
			 //     config: toolbarConfig,
			 //     mode: 'default', // or 'simple'
			 // })
			 
			 editor.setHtml(params.content)
			 function down(file) {
				 //console.log('downArr',file)
				 
				 var currentUser = $('.bankName').attr('data-val');
				 if (!currentUser) {
				 	layer.confirm('你需要登录后才能下载附件', {
				 		icon: 0,
				 		title: false,
				 	}, function(index) {
				 		layer.close(index);
				 		loginSvkc('jg');
				 	});
					return
				 };
				 if(file == 1){
					 window.open(params.file1,'_blank')
				 }else{
					  window.open(params.file2,'_blank')
				 }
				 
			 }
		</script>
	</body>

</html>